﻿using System;

namespace ExFlash.Filters
{
    public class ColorMatrixFilter : ISwfSerializable
    {
        private const int MatrixSize = 20;
        
        public float[] Matrix
        {
            get;
            private set;
        }

        public ColorMatrixFilter()
        {
            Matrix = new float[MatrixSize];
        }

        #region ISwfSerializable Members

        public void SwfDeserialize(BinaryBitReader reader)
        {
            for (int i = 0; i < MatrixSize; i++)
            {
                Matrix[i] = reader.ReadSingle();
            }
        }

        public void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
